package com.hl.sfzy.service.impl;

import com.hl.sfzy.entity.HeartMark;
import com.hl.sfzy.mapper.HeartMarkMapper;
import com.hl.sfzy.service.HeartMarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HeartMarkServiceImpl implements HeartMarkService {

    @Autowired
    private HeartMarkMapper heartMarkMapper;
    @Override
    public int insert(HeartMark hearMark) {
        return heartMarkMapper.insert(hearMark);
    }

    @Override
    public int deleteById(int heartmark_id) {
        return heartMarkMapper.deleteById(heartmark_id);
    }

    @Override
    public int update(HeartMark hearMark) {
        return heartMarkMapper.update(hearMark);
    }

    @Override
    public HeartMark selectById(int heartmark_id) {
        return heartMarkMapper.selectById(heartmark_id);
    }


    @Override
    public List<HeartMark> selectAll() {
        return heartMarkMapper.selectAll();
    }
}

